home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1997 August / Walnut Creek CDROM.7z / LISTINGS / V_13_04 / CHAPMAN.ZIP / COMPLAIN.HPP < prev    next >
Encoding:
Text File  |  1994-03-02  |  868 b   |  30 lines

  1. Listing 8.
  2.  
  3. /* complain.hpp - message dictionary handler */
  4.  
  5. #ifndef COMPLAIN_HPP
  6. #define COMPLAIN_HPP
  7.  
  8. class complain_ptr;             /* in complain.cpp */
  9.  
  10. class complaint_dict {
  11.     public:
  12.         complaint_dict(const char *filename);
  13.         ~complaint_dict(void);
  14.         int key_defined(const char *name) const;
  15.         int complaint_text(const char *name,
  16.                            char *line,
  17.                            int linelen) const;
  18.         const char *filename(void) const
  19.             { return _filename; }
  20.     private:
  21.         char *_filename;
  22.         complain_ptr *complain_table;
  23.         /* unimplemented: */
  24.         complaint_dict(const complaint_dict &other);
  25.         complaint_dict &operator
  26.                        =(const complaint_dict &other);
  27. };  /* end of class complaint_dict */
  28.  
  29. #endif  /* COMPLAIN_HPP */
  30.